<?php

class Favorite extends SActiveRecord
{
    public static $objects;
    public static $relationships = array(
        'user' => 'belongs_to'  
    );
    
    public function validate()
    {
        $this->validate_presence_of(array('status_id', 'user_id'));
    }
}

?>